using UnityEngine;
using UnityEngine.UI;

namespace WolfCarol.AvgToolkit.Localization
{
    [RequireComponent(typeof(Image))]
    public class LocalImage : LocalBase<Image>
    {
        public override void OnLanguageChanged(string token)
        {
            if (m_component == null)
            {
                return;
            }

            m_component.sprite = Resources.Load<Sprite>(token);
        }
    }
}
